package com.st.security.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @创建人: 放生
 * @创建时间: 2022/4/6
 * @描述:
 */
@Component // 不要少了
@ConfigurationProperties( prefix = "st.security")
public class SecurityProperties {

    // 将application.yml 中的 st.security.authentication 下面的值绑定到此对象中
    private AuthenticationProperties authentication;

    public AuthenticationProperties getAuthentication() {
        return authentication; }

    public void setAuthentication(AuthenticationProperties authentication) {
        this.authentication = authentication; }

}
